<?php

/**
 * uniBoard System Constants
 *
 * Light and fast forum solution for web 2.0-like communities.
 *
 * @package		uniBoard
 * @author		Rafał Pitoń
 * @license		http://www.gnu.org/licenses/gpl-3.0.html
 * @since		Version 0.1
 * 
 * ------------------------------------------------------------------------
 * 
 * $Date: 2010-09-20 21:23:27 +0000 (Mon, 20 Sep 2010) $
 * $Revision: 64 $
 * $Author: rafio.xudb@gmail.com $
 */

// ------------------------------------------------------------------------

/**
 * enable developer mode?
 * WARNING: by doing so you will shut down all safe-break systems in software!
 * Your actions with this mode on can even destroy the system!
 * So please note that you are enabling it at your own risk, and we do not support errors and problems occured during dev-mod on
 */	

define( 'DEVELOPER_MODE', 1);

// Admin Control Panel higly dangerous actions allowance
define( 'ROOT_MYSQL_CONSOLE_TURN', 1);
define( 'ROOT_DB_BACKUP_TURN', 1);

// Turn on plugins system?
define( 'TURN_ON_PLUGINS', 1);

// Allow Old evil IE to access uniBoard? Enter 0 to turn this off, or number of newest IE to block access. Example: Setting this to 8 will block MSIE older than 8.
define( 'FORBID_OLD_IE', 7);

// Allow Session ID receive from query when cookie failed? (This can save TONS of trouble for some people)
// !WARNING! Make sure that sessions use client's IP in session auth before turning this on!
define( 'SID_FROM_QUERY', 0);

// ------------------------------------------------------------------------

// DB Configuration file
define( 'CONFIG_PATH', ROOT_PATH . 'system_config' . PHP_EXT);

// APPLICATIONS LAUNCHERS
define( 'APP_FORUM_LAUNCHER', 'index' . PHP_EXT);
define( 'APP_ADMIN_LAUNCHER', 'index' . PHP_EXT);
define( 'APP_TASK_LAUNCHER', SYSTEM_PATH . 'task' . PHP_EXT);

//ROOT PATHS
define( 'ADMIN_PATH', ROOT_PATH . 'admincp/');
define( 'CACHE_PATH', ROOT_PATH . 'cache/');
define( 'IMAGES_PATH', ROOT_PATH . 'images/');
define( 'SMILEYS_PATH', IMAGES_PATH . 'smileys/');
define( 'TOPICS_ICONS_PATH', IMAGES_PATH . 'topics_icons/');
define( 'AVATARS_GALLERY_PATH', IMAGES_PATH . 'avatars_gallery/');
define( 'ATTACHMENTS_ICONS_PATH', IMAGES_PATH . 'attachments_types/');
define( 'EDITOR_ICONS_PATH', IMAGES_PATH . 'editor_icons');
define( 'UPLOADS_PATH', ROOT_PATH . 'uploads/');
define( 'STYLES_DATA_PATH', ROOT_PATH . 'styles_data/');

//SYSTEM PATHS
define( 'APPLICATIONS_PATH', SYSTEM_PATH . 'application/');
define( 'ACTIONS_ADMIN_PATH', SYSTEM_PATH . 'action_admin/');
define( 'ACTIONS_GLOBAL_PATH', SYSTEM_PATH . 'action_global/');
define( 'ACTIONS_PUBLIC_PATH', SYSTEM_PATH . 'action_public/');
define( 'APIS_PATH', SYSTEM_PATH . 'api/');
define( 'CLASSES_PATH', SYSTEM_PATH . 'class/');
define( 'TASKS_PATH', SYSTEM_PATH . 'task/');
define( 'EXCEPTIONS_PATH', SYSTEM_PATH . 'exception/');

//ADMIN STYLE
define( 'ADMIN_TEMPLATES_PATH', ADMIN_PATH . 'templates/');
define( 'ADMIN_CSS_PATH', ADMIN_PATH . 'admin_style.css');
define( 'ADMIN_JAVA_PATH', ADMIN_PATH . 'admin_script.js');

//SOURCES PATH
define( 'SOURCES_PATH', SYSTEM_PATH . 'source/');
define( 'ADMIN_ACTIONS_MAP_PATH', SOURCES_PATH . 'acp_actions_map' . PHP_EXT);
define( 'ADMIN_BLOCKS_MAP_PATH', SOURCES_PATH . 'acp_blocks_map' . PHP_EXT);
define( 'JS_FRAMEWORK_PATH', SOURCES_PATH . 'jquery.js');
define( 'JS_BOARD_PATH', SOURCES_PATH . 'board_script.js');
define( 'CSS_FRAMEWORK_PATH', SOURCES_PATH . 'blueprint');
define( 'LANGUAGE_FILES_MAP', SOURCES_PATH . 'lang_files_map' . PHP_EXT);
define( 'GESHI_DATA_PATH', SOURCES_PATH . 'geshi');

// Default FavIcon path
define( 'DEFAULT_FAVICON_PATH', IMAGES_PATH . 'favicon.ico');